

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
    <style>
    /* base */
    html,
    body,
    .container {
      width: 100%;
      height: 100%;
    }

    a,
    a:link,
    a:visited {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    *,
    ::before,
    ::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    *:focus {
      outline: 0;
    }

    .container {
      display: flex;
      padding-top: 20px;
    }

    /* Nav */
    .container .doc-nav {
      position: fixed;
      height: 100%;
      margin: 0 30px 0 40px;
      width: 280px;
    }

    .doc-nav .nav-header {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      background-color: rgb(240, 241, 242);
      height: 40px;
      padding: 16px;
      font-size: 18px;
      font-weight: 500;
      color: rgb(62, 64, 66);
      cursor: pointer;
    }

    .doc-nav .nav-content {
      height: calc(100% - 40px);
      overflow-y: auto;
      color: rgb(32, 34, 36);
    }

    .doc-nav .nav-content .nav-list,
    .doc-nav .nav-content .nav-sub-list {
      line-height: 1.5rem;
    }

    .doc-nav .nav-content .nav-label {
      display: inline-block;
      position: relative;
      padding: 2px 0 2px 20px;
      margin-bottom: 4px;
    }

    .doc-nav .nav-content .nav-sub-label {
      position: relative;
      padding: 2px 0 2px 40px;
      font-size: 14px;
    }

    .doc-nav .nav-content .nav-sub-label:hover {
      text-decoration: underline;
    }

    .doc-nav .nav-content .nav-list .nav-label.group::before {
      border-bottom: 0.25rem solid transparent;
      border-left: 0.25rem solid #6e7072;
      border-right: 0;
      border-top: 0.25rem solid transparent;
      content: '';
      display: block;
      height: 0;
      left: 0.5rem;
      position: absolute;
      top: 0.625rem;
      transition: transform 0.1s linear;
      width: 0;
    }

    .doc-nav .nav-content .nav-list .nav-label.group.active::before {
      transform: rotate(90deg);
    }

    /* doc content */
    .container .doc-content {
      position: fixed;
      height: 100%;
      width: calc(100% - 80px - 40px - 30px - 240px);
      right: 0%;
      overflow-y: auto;
    }

    .doc-title {
      border-bottom: 1px solid #dcdee0;
      font-size: 22px;
      margin: 8px 0 0;
      padding-bottom: 16px;
    }

    .doc-content h3 {
      font-size: 24px;
      font-weight: 600;
      margin: 24px 0;
    }

    .doc-content h4 {
      font-size: 22px;
      font-weight: 500;
      margin: 30px 0 8px;
    }

    .doc-content h4 span {
      color: #007d9c;
    }

    .doc-content .doc-declare {
      background-color: #fafafa;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 14px;
      overflow-x: auto;
      padding: 10px;
      tab-size: 4;
      line-height: 20px;
    }

    .doc-content .doc-comment {
      font-size: 16px;
      margin: 16px 0;
      line-height: 24px;
      word-break: break-word;
    }
  </style>

</head>
<body>
  <div class="container">
    <div class="doc-nav">
      <a href="#Documentation" class="nav-header">Documentation</a>
      <nav class="nav-content">
        <ul class="nav-list">
          <li>
            <a href="#includes" class="nav-label">Includes</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#lwip/opt.h" class="nav-sub-label">lwip/opt.h</a>
              </li>
      

              <li>
                <a href="#lwip/netif.h" class="nav-sub-label">lwip/netif.h</a>
              </li>
      

              <li>
                <a href="#lwip/udp.h" class="nav-sub-label">lwip/udp.h</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#macros" class="nav-label">Macros</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#LWIP_HDR_DHCP_H" class="nav-sub-label">LWIP_HDR_DHCP_H</a>
              </li>
      

              <li>
                <a href="#DHCP_COARSE_TIMER_SECS" class="nav-sub-label">DHCP_COARSE_TIMER_SECS</a>
              </li>
      

              <li>
                <a href="#DHCP_COARSE_TIMER_MSECS" class="nav-sub-label">DHCP_COARSE_TIMER_MSECS</a>
              </li>
      

              <li>
                <a href="#DHCP_FINE_TIMER_MSECS" class="nav-sub-label">DHCP_FINE_TIMER_MSECS</a>
              </li>
      

              <li>
                <a href="#DHCP_BOOT_FILE_LEN" class="nav-sub-label">DHCP_BOOT_FILE_LEN</a>
              </li>
      

              <li>
                <a href="#dhcp_remove_struct(netif)" class="nav-sub-label">dhcp_remove_struct(netif)</a>
              </li>
      

              <li>
                <a href="#netif_dhcp_data(netif)" class="nav-sub-label">netif_dhcp_data(netif)</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#functions" class="nav-label">Functions</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#dhcp_set_struct" class="nav-sub-label">dhcp_set_struct</a>
              </li>
      

              <li>
                <a href="#dhcp_cleanup" class="nav-sub-label">dhcp_cleanup</a>
              </li>
      

              <li>
                <a href="#dhcp_start" class="nav-sub-label">dhcp_start</a>
              </li>
      

              <li>
                <a href="#dhcp_renew" class="nav-sub-label">dhcp_renew</a>
              </li>
      

              <li>
                <a href="#dhcp_release" class="nav-sub-label">dhcp_release</a>
              </li>
      

              <li>
                <a href="#dhcp_stop" class="nav-sub-label">dhcp_stop</a>
              </li>
      

              <li>
                <a href="#dhcp_release_and_stop" class="nav-sub-label">dhcp_release_and_stop</a>
              </li>
      

              <li>
                <a href="#dhcp_inform" class="nav-sub-label">dhcp_inform</a>
              </li>
      

              <li>
                <a href="#dhcp_network_changed" class="nav-sub-label">dhcp_network_changed</a>
              </li>
      

              <li>
                <a href="#dhcp_arp_reply" class="nav-sub-label">dhcp_arp_reply</a>
              </li>
      

              <li>
                <a href="#dhcp_supplied_address" class="nav-sub-label">dhcp_supplied_address</a>
              </li>
      

              <li>
                <a href="#dhcp_coarse_tmr" class="nav-sub-label">dhcp_coarse_tmr</a>
              </li>
      

              <li>
                <a href="#dhcp_fine_tmr" class="nav-sub-label">dhcp_fine_tmr</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#vars" class="nav-label">Vars</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#consts" class="nav-label">Consts</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#types" class="nav-label">Types</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#typedefs" class="nav-label">Typedefs</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#dhcp_autoip_coop_state_enum_t;
" class="nav-sub-label">dhcp_autoip_coop_state_enum_t;
</a>
              </li>
      
            </ul>
            
          </li>
        </ul>
      </nav>
    </div>
    <div class="doc-content">
      <h2 id="Documentation" class="doc-title">Documentation</h2>
      <h3 id="includes">Includes</h3>
      

      <h4 id="lwip/opt.h"><span>lwip/opt.h</span></h4>
      <pre class="doc-declare"><code>#include "lwip/opt.h"
</code></pre>
      <pre class="doc-comment">#include "lwip/opt.h"
</pre>

      <h4 id="lwip/netif.h"><span>lwip/netif.h</span></h4>
      <pre class="doc-declare"><code>#include "lwip/netif.h"
</code></pre>
      <pre class="doc-comment">#include "lwip/netif.h"
</pre>

      <h4 id="lwip/udp.h"><span>lwip/udp.h</span></h4>
      <pre class="doc-declare"><code>#include "lwip/udp.h"
</code></pre>
      <pre class="doc-comment">#include "lwip/udp.h"
</pre>
      <h3 id="macros">Macros</h3>
      

      <h4 id="LWIP_HDR_DHCP_H">Marco <span>LWIP_HDR_DHCP_H</span></h4>
      <pre class="doc-declare"><code>#define LWIP_HDR_DHCP_H
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="DHCP_COARSE_TIMER_SECS">Marco <span>DHCP_COARSE_TIMER_SECS</span></h4>
      <pre class="doc-declare"><code>#define DHCP_COARSE_TIMER_SECS 60
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="DHCP_COARSE_TIMER_MSECS">Marco <span>DHCP_COARSE_TIMER_MSECS</span></h4>
      <pre class="doc-declare"><code>#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS * 1000UL)
</code></pre>
      <pre class="doc-comment">/** period (in milliseconds) of the application calling dhcp_coarse_tmr() */</pre>

      <h4 id="DHCP_FINE_TIMER_MSECS">Marco <span>DHCP_FINE_TIMER_MSECS</span></h4>
      <pre class="doc-declare"><code>#define DHCP_FINE_TIMER_MSECS  500
</code></pre>
      <pre class="doc-comment">/** period (in milliseconds) of the application calling dhcp_fine_tmr() */</pre>

      <h4 id="DHCP_BOOT_FILE_LEN">Marco <span>DHCP_BOOT_FILE_LEN</span></h4>
      <pre class="doc-declare"><code>#define DHCP_BOOT_FILE_LEN     128U
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_remove_struct(netif)">Marco <span>dhcp_remove_struct(netif)</span></h4>
      <pre class="doc-declare"><code>#define dhcp_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, NULL)
</code></pre>
      <pre class="doc-comment">/** Remove a struct dhcp previously set to the netif using dhcp_set_struct() */</pre>

      <h4 id="netif_dhcp_data(netif)">Marco <span>netif_dhcp_data(netif)</span></h4>
      <pre class="doc-declare"><code>#define netif_dhcp_data(netif) ((struct dhcp*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP))
</code></pre>
      <pre class="doc-comment"></pre>
      <h3 id="functions">Functions</h3>
      

      <h4 id="dhcp_set_struct">Func <span>dhcp_set_struct</span></h4>
      <pre class="doc-declare"><code>void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_cleanup">Func <span>dhcp_cleanup</span></h4>
      <pre class="doc-declare"><code>void dhcp_cleanup(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_start">Func <span>dhcp_start</span></h4>
      <pre class="doc-declare"><code>err_t dhcp_start(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_renew">Func <span>dhcp_renew</span></h4>
      <pre class="doc-declare"><code>err_t dhcp_renew(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_release">Func <span>dhcp_release</span></h4>
      <pre class="doc-declare"><code>err_t dhcp_release(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_stop">Func <span>dhcp_stop</span></h4>
      <pre class="doc-declare"><code>void dhcp_stop(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_release_and_stop">Func <span>dhcp_release_and_stop</span></h4>
      <pre class="doc-declare"><code>void dhcp_release_and_stop(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_inform">Func <span>dhcp_inform</span></h4>
      <pre class="doc-declare"><code>void dhcp_inform(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_network_changed">Func <span>dhcp_network_changed</span></h4>
      <pre class="doc-declare"><code>void dhcp_network_changed(struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_arp_reply">Func <span>dhcp_arp_reply</span></h4>
      <pre class="doc-declare"><code>void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_supplied_address">Func <span>dhcp_supplied_address</span></h4>
      <pre class="doc-declare"><code>u8_t dhcp_supplied_address(const struct netif *netif);</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="dhcp_coarse_tmr">Func <span>dhcp_coarse_tmr</span></h4>
      <pre class="doc-declare"><code>void dhcp_coarse_tmr(void);</code></pre>
      <pre class="doc-comment">/* to be called every minute */</pre>

      <h4 id="dhcp_fine_tmr">Func <span>dhcp_fine_tmr</span></h4>
      <pre class="doc-declare"><code>void dhcp_fine_tmr(void);</code></pre>
      <pre class="doc-comment">/* to be called every half second */</pre>
      <h3 id="vars">Vars</h3>
      
      <h3 id="consts">Consts</h3>
      
      <h3 id="types">Types</h3>
      
      <h3 id="typedefs">Typedefs</h3>
      

      <h4 id="dhcp_autoip_coop_state_enum_t;
">Typedef <span>dhcp_autoip_coop_state_enum_t;
</span></h4>
      <pre class="doc-declare"><code>typedef enum {
 DHCP_AUTOIP_COOP_STATE_OFF = 0,
 DHCP_AUTOIP_COOP_STATE_ON  = 1
} dhcp_autoip_coop_state_enum_t;
</code></pre>
      <pre class="doc-comment">/* AutoIP cooperation flags (struct dhcp.autoip_coop_state) */</pre>
    </div>
  </body>
</html>
            